package com.zzh.takeoutapp.utils;


import android.content.Context;

import com.zzh.takeoutapp.entity.FoodBean;
import com.zzh.takeoutapp.entity.TypeBean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class BaseUtils {

    public static List<FoodBean> getDetails(List<FoodBean> fList) {
        ArrayList<FoodBean> flist = new ArrayList<>();
        if (fList != null && fList.size() > 0)
            for (int i = 1; i < 5; i++) {
                if (fList.size() > i * 10) {
                    flist.add(fList.get(i * 10 - 1));
                    flist.add(fList.get(i * 10));
                } else {
                    break;
                }
            }
        return flist;
    }

}
